﻿<?php

require_once('DatabaseHelper.php');
DatabaseHelper::getInstance()->connect();
$login=$_POST['login'];
$firstname=$_POST['firstname'];
$lastname=$_POST['lastname'];
$passwd=md5($_POST['passwd']);
$query="update members set login='$login', firstname='$firstname', lastname='$lastname', passwd='$passwd' where member_id='1'";
$result= DatabaseHelper::getInstance()->query($query);
if($result) {
	echo "Đã thay đổi thành công";
	header("location: index.php");
	exit();
}

?>